

class juxing{
    private double a;
    private double b;
    public double getA() {
        return a;
    }
    public void setA(double a) {
        this.a = a;
    }
    public double getB() {
        return b;
    }
    public void setB(double b) {
        this.b = b;
    }
    public double cc(double a,double b) {
        return 2*(a+b);
    }
    public double mj(double a,double b) {
        return a*b;
    }
    public juxing() {

    }
    public juxing(double a,double b) {
        this.a=a;
        this.b=b;
    }
    public void show() {
        System.out.println("长"+a+"宽"+b+"周长"+cc(a, b)+"面积"+mj(a,b));
    }



}

public class Main {

    public static void main(String[] args) {
        // TODO Auto-generated method stub
        juxing jx=new juxing(2,3);
        jx.show();
    }
}

